<include file="Public:headerNew" />
<div class="titleone"><h1 class="fLeft">新增<eq name="level" value="1">应用</eq><eq name="level" value="2">模块</eq><eq name="level" value="3">操作</eq> [ <a href="__URL__">返回列表</a> ]</h1><a href="__URL__"><div class="returnimg"></div></a></div>
<div id="result" class="result none"></div>
<div id="main" class="main full" >

<script language="javascript">
function getZonsList(obj){
	
				var t_url= URL+"/getNodeList/gid/"+$("#groupid").val()+"/pid/"+$("#pid").val();
				
				$.ajax({
						url: t_url,
						type: 'GET',
						dataType: 'json',
						error: function(){
							alert('Error loading XML document');
						},
						success: function(data, textStatus){
							var json = eval(data['data']);
							$('#nodeid').empty();
							if (json!=null){

						    for (var ind in json) {
								
							 	 $('#nodeid').append('<option value="' + json[ind].id + '">'+json[ind].title+'['+json[ind].name+']</option>');
								 //对面积数据数组赋值
									var itemx= new Array();
									itemx[0]=json[ind].id;
									itemx[1]=json[ind].name;
									
									
	                		}
							}
						}
				});
} 
</script>
<form method='post'  id="form1" >
<table cellpadding=3 cellspacing=3 >

<tr>
	<td class="tRight" >显示名：</td>
	<td class="tLeft" ><input type="text" class="medium bLeftRequire" name="menuname"></td>
</tr>
<tr>
	<td class="tRight" >分 组：</td>
	<td class="tLeft" >
	<SELECT class="medium bLeft" name="groupid" id="groupid" onchange="getZonsList(this)">
	<option value="">未分组</option>
	<volist name="list" id="vo">
	<option value="{$vo.id}">{$vo.title}</option>
	</volist>
	</SELECT>
	</td>
</tr>
<tr>
	<td class="tRight" >节点选择：</td>
	<td class="tLeft" >
	<SELECT class="medium bLeft" name="nodeid" id="nodeid">
	<option value="">未选择</option>
	<volist name="list" id="vo">
	<option value="{$vo.id}">{$vo.title}</option>
	</volist>
	</SELECT>
	</td>
</tr>
<tr>
	<td class="tRight">类型：</td>
	<td class="tLeft"><SELECT class="medium bLeft"  name="menutype">
	<option value="0">类别不带链接</option>
    <option value="2">标准菜单项</option>
    <option value="4">菜单项外部链接</option>
    <option value="3">菜单项静态页</option>
    <option value="1">类别带链接</option>
	
	</SELECT></td>
</tr>
<tr>
	<td class="tRight tTop">URL外链：</td>
	<td class="tLeft"><TEXTAREA class="large bLeft" name="url"  rows="5" cols="57"></textarea></td>
</tr>
<tr>
	<td></td>
	<td class="center"><div style="width:85%;margin:5px">
	<input type="hidden" name="level" value="{$level}">
	<input type="hidden" name="pid" value="{$pid}">
	<input type="hidden" name="ajax" value="1">
	<div class="impBtn fLeft"><input type="button" value="保存" onclick="sendForm('form1','__URL__/insert/','tips')" class="save imgButton"></div>
	<div class="impBtn fRig"><input type="reset" class="reset imgButton" value="清空" ></div>
	</div></td>
</tr>
</table>
</form>

</div>
